<html>
<head><meta charset="utf-8"><title>Cargo and concurrency · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Cargo.20and.20concurrency.html">Cargo and concurrency</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="222789525"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Cargo%20and%20concurrency/near/222789525" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Arlie Davis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Cargo.20and.20concurrency.html#222789525">(Jan 14 2021 at 21:50)</a>:</h4>
<p>Is it safe to run more than 1 instance of Cargo, if they use different <code>--target-dir</code>?  I'm thinking specifically about the cached crates that are stored in <code>$CARGO_HOME</code>, and the copy of the <a href="http://crates.io">crates.io</a> index. </p>
<p>In other words, if I have a single huge source tree, and a dozen <code>Cargo.toml</code> workspaces (each of which contains N crate members), can I safely run <code>cargo --target-dir .../some_dir</code> for each of these workspaces?</p>
<p>It's not an option to combine them into one single Cargo invocation.</p>



<a name="222789625"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Cargo%20and%20concurrency/near/222789625" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Cargo.20and.20concurrency.html#222789625">(Jan 14 2021 at 21:51)</a>:</h4>
<p>I would expect so</p>



<a name="222789641"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Cargo%20and%20concurrency/near/222789641" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Cargo.20and.20concurrency.html#222789641">(Jan 14 2021 at 21:51)</a>:</h4>
<p>you'd want to ask in <a class="stream" data-stream-id="246057" href="/#narrow/stream/246057-t-cargo">#t-cargo</a> , not here, though</p>



<a name="222789919"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Cargo%20and%20concurrency/near/222789919" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Arlie Davis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Cargo.20and.20concurrency.html#222789919">(Jan 14 2021 at 21:53)</a>:</h4>
<p>Ooop, sorry.  Didn't see that in the streams list.</p>



<a name="222790187"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Cargo%20and%20concurrency/near/222790187" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Cargo.20and.20concurrency.html#222790187">(Jan 14 2021 at 21:55)</a>:</h4>
<p>no problem :) I just don't know is all haha</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>